
package com.eascs.admin.o2o.loanAccount.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.eascs.admin.o2o.loanAccount.entity.AccountLog;
import com.eascs.admin.o2o.loanAccount.serviceimpl.AccountLogImpl;
import com.eascs.site.controller.BaseRestController;
import com.eascs.site.view.BaseRestResult;
import com.eascs.site.view.HtmlRestResult;
import com.eascs.site.view.ViewContext;

/**@Description:
 *               <p>
 *               日志（帐务系统接口）查询功能
 *               </p>
 * @author LMX
 * @date 2017年12月19日 上午10:44:12
 */
@RestController
@RequestMapping("/raccountlog")
public class AccountLogRestController extends BaseRestController{

	@Autowired
	AccountLogImpl accountLogImpl;
	
	/**
	 * @Description:
	 *               <p>
	 *               帐务系统接口日志 详情
	 *               </p>
	 * @author LMX
	 * @date 2018年1月30日 下午2:00:04
	 * @version V1.0
	 */
	@RequestMapping("/detail")
	public BaseRestResult<String> detail(String id){
		AccountLog vo = accountLogImpl.fingLogByLoanapplyNo(id);
		ViewContext.put("vo", vo);
		return HtmlRestResult.popHtmlFragment("/accountLog/accountLog_detail");
	}
	
}
